package cn.factorybox.entity;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;

/**
 * 载荷对象
 */

public class UserInfo {

    private String id;

    private String username;

    private List<String> roles;  // 用户权限

//    private String remark;     // 权限备注

    private String email;       //用户邮箱

    private String phone;       //用户联系方式

    private String companyId;   //所属公司id

//    private String level;       // 用户级别

    public UserInfo() {
    }

    public UserInfo(String id, String username) {
        this.id = id;
        this.username = username;
    }

    public UserInfo(String id, String username, String phone,String mail, List<String> roles, String companyId) {
        this.id = id;
        this.username = username;
        this.phone = phone;
        this.email = mail;
        this.roles = roles;
        this.companyId = companyId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public List<String> getRoles() {
        return roles;
    }

    public void setRoles(List<String> roles) {
        this.roles = roles;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }
}